package locksupport;

import java.util.concurrent.locks.LockSupport;

/**
 * @Author：小鹿爱吃鱼
 * @Date: 2025/4/28 20:50
 * @Description:
 */
public class TestLockSupport {

    public static void main(String[] args) {

        Thread thread = new Thread(() -> {
            for (int i = 0; i < 2000000000; i++) {

            }

            LockSupport.park();
            LockSupport.park();
            LockSupport.park();
            LockSupport.park();
            LockSupport.park();
            LockSupport.park();





            System.out.println("aaaaa");

        });

        thread.start();


        //thread.interrupt();



    }

}
